package service.version;
import mapper.version.VersionMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pojo.Version;
import javax.annotation.Resource;
import java.util.List;
@Transactional
@Service("versionService")
public class VersionServiceImpl implements  VersionService{
    @Resource
    private VersionMapper versionMapper;

    public List<Version> getAllAppVersion(int id) {
        return versionMapper.getAllAppVersion(id);
    }

    public int addAppVersion(Version version) {
        return versionMapper.addAppVersion(version);
    }

    public int updateVersion(Version version) {
        return versionMapper.updateVersion(version);
    }

    public Version getVersionListByID(int id) {
        return versionMapper.getVersionListByID(id);
    }

    public int updateAppInfo(int id, int appId) {
        return versionMapper.updateAppInfo(id,appId);
    }


}
